from rest_framework.viewsets import ModelViewSet
from users.models import User
from meiduo_admin.serializers.admins import AdminSerializer
from meiduo_admin.utils.pagination import MeiduoPagination


class AdminView(ModelViewSet):
    queryset = User.objects.filter(is_staff=True).order_by('id')
    serializer_class = AdminSerializer
    pagination_class = MeiduoPagination
